package es.chaveweb.poZit.client.mvp.widget;

import com.google.web.bindery.requestfactory.shared.EntityProxyId;
import com.grupit.engine.util.Format;

import es.chaveweb.poZit.shared.proxy.PoZitProxy;

public class PoZitData {
	private EntityProxyId<? extends PoZitProxy> id;
	private int x;
	private int y;
	private String noteText;

	public EntityProxyId<? extends PoZitProxy> getId() {
		return id;
	}

	public void setId(EntityProxyId<? extends PoZitProxy> id) {
		this.id = id;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public String getNoteText() {
		return noteText;
	}

	public void setNoteText(String noteText) {
		this.noteText = noteText;
	}

	@Override
	public String toString() {
		return Format.substitute("'{0}' ({1},{2}", noteText, x, y);
	}
}